package cn.sinonet.sms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sinonet.sms.dao.FKTXDao;
import cn.sinonet.sms.model.FKTX;

@Service("fktxManager")
public class FKTXManagerImp extends GenericManagerImp<FKTX, Long> implements
		FKTXManager {

	FKTXDao fktxDao;

	public FKTXDao getFktxDao() {
		return fktxDao;
	}

	@Autowired
	public void setFktxDao(FKTXDao fktxDao) {
		this.dao = fktxDao;
		this.fktxDao = fktxDao;
	}

	@Override
	public FKTX saveFKTX(FKTX fktx) {
		return dao.save(fktx);
	}

	public FKTX loadByMessageAndPhone(String message, String phone, String time) {
		return (FKTX) fktxDao.loadByMessageAndPhone(message, phone, time);
	}

}
